#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main() {
    char hang[100000];
    int a[26] = { 0 };
    char c;
    int i = 0;
    while (scanf("%c", &c) == 1 && c != '\n') {
        hang[i] = c;
        i++;
    }
    for (int j = 0; j < i; j++) {
        if (hang[j] <= 'z' && hang[j] >= 'a') {
            a[hang[j] - 'a']++;
        }
    }
    for (int i = 0; i < 26; i++) {
        printf("%d ", a[i]);
    }
    return 0;
}